﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PurchaseOrderPaymentManage.aspx.cs" Inherits="weba.Sales.PurchaseOrderPaymentManage" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1Input" TagPrefix="wijmo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
         <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="30" background="../Images/tab_05.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="12" height="30">
                                        <img src="../Images/tab_03.gif" width="12" height="30" />
                                    </td>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="46%" valign="middle">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td>
                                                                <div align="center">
                                                                    <img src="../images/tb.gif" width="16" height="16" /></div>
                                                            </td>
                                                            <td width="95%">
                                                                <span class="titleBold12px">订货单付款</span></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td width="54%" align="right">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="16" height="30">
                                        <img src="../Images/tab_07.gif" width="16" height="30" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="8" background="../images/tab_12.gif">
                                        &nbsp;
                                    </td>
                                    <td>
                                        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td width="100" height="30" align="right">
                                                    订货单编号：
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblPurchaseOrderNumber" runat="server"></asp:Label>
                                                    <asp:Label ID="lblPurchaseOrderID" runat="server" Visible="False"></asp:Label>
                                                    <asp:Label ID="lblRootDepartmentID" runat="server" Visible="False"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    支出类别：
                                                </td>
                                                <td>
                                                    订货付款</td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    日期：
                                                </td>
                                                <td>
                                           
                                                      <wijmo:C1InputDate ID="txtDateReckoning" runat="server"></wijmo:C1InputDate>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    收款方：
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblInfoTo" runat="server"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    付款方：
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblInfoFrom" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    付款账户：
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlAccountID" runat="server" AutoPostBack="True" 
                                                        onselectedindexchanged="ddlAccountID_SelectedIndexChanged">
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                                                        ControlToValidate="ddlAccountID" Display="Dynamic" ErrorMessage="请选择账户" 
                                                        SetFocusOnError="True" ValidationGroup="val"></asp:RequiredFieldValidator>
                                                    当前余额：<asp:Label ID="lblCurrentBalance" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                     金额：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtSettlementAmount" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtSettlementAmount"
                                                            Display="Dynamic" ErrorMessage="请输入金额" SetFocusOnError="True" ValidationGroup="val"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationGroup="val"
                                                            runat="server" ErrorMessage="只能输入整数或小数" ValidationExpression="^(\d)+(\.\d+)?$"
                                                            ControlToValidate="txtSettlementAmount"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    经办人：
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblManagerTrueName" runat="server"></asp:Label>
                                                    <asp:Label ID="lblManagerUserName" runat="server" Visible="False"></asp:Label>
                                                </td>
                                            </tr>
                                             <tr>
                                                <td width="100" height="30" align="right">
                                                    备注：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtNotes" runat="server" Width="400px" Height="50px" 
                                                        TextMode="MultiLine"></asp:TextBox>
                                                </td>
                                            </tr>
                                           <tr>
                                                
                                                <td align="center" colspan="2">
                                                    <br />
                                                    <asp:Button ID="btnAdd" runat="server" Text="确认付款" OnClick="btnAdd_Click" ValidationGroup="val" 
                                                    Font-Size="16px" Height="30px" Width="100px" OnClientClick="return confirm(&quot;将确认付款明细，且无法再修改，您确认付款吗？&quot;)" />
                                                    &nbsp;
                                                    <asp:Button ID="btnClose" runat="server" Font-Size="16px" Height="30px" Text="关闭"
                                                        Width="100px" OnClientClick="window.close();" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="8" background="../images/tab_15.gif">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="35" background="../images/tab_19.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="12" height="35">
                                        <img src="../images/tab_18.gif" width="12" height="35" />
                                    </td>
                                    <td align="center">
                                        &nbsp;
                                    </td>
                                    <td width="16">
                                        <img src="../images/tab_20.gif" width="16" height="35" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btnAdd" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
